//
//  TabBarController.h
//  GymJT
//
//  Created by    🐯 on 16/9/8.
//  Copyright © 2016年 张炫赫. All rights reserved.
//

#import <UIKit/UIKit.h>
#define tabbarSelectedVC (UINavigationController *)[(TabBarController *)[UIApplication sharedApplication].keyWindow.rootViewController selectedViewController]

#define showVC [(UINavigationController *)[(TabBarController *)[UIApplication sharedApplication].keyWindow.rootViewController selectedViewController] topViewController]

#define  push(k)   [showVC.navigationController pushViewController:[[NSClassFromString(k) alloc]init] animated:YES];

#define  present(k) [showVC presentViewController:[[NSClassFromString(k) alloc]init] animated:YES completion:nil];

#define  presentNav(k) [showVC presentViewController:[[UINavigationController alloc] initWithRootViewController:[[NSClassFromString(k) alloc]init]] animated:YES completion:nil];

@interface TabBarController : UITabBarController

@end
